package com.coupons.business.page.service;

import java.util.List;

import com.coupons.business.common.exception.BaseCouponsAppException;
import com.coupons.business.common.vo.Page;
import com.coupons.business.page.dao.IPageDAO;
import com.coupons.business.page.controller.IPageManager;

public class PageManagerService implements IPageManager{
	IPageDAO pageDAO;  
	public IPageDAO getPageDAO() 
	{
		return pageDAO;
	}

	public void setPageDAO(IPageDAO pageDAO) 
	{
		this.pageDAO = pageDAO;
	}

	@Override
	public void createPage(Page objaPage)
			throws BaseCouponsAppException 
	{
		pageDAO.createPage(objaPage);
	}

	@Override
	public void updatePage(Page objaPage)
			throws BaseCouponsAppException 
	{
		pageDAO.updatePage(objaPage);
	}

	@Override
	public Page getPage(int PageId) throws BaseCouponsAppException 
	{		
		return pageDAO.getPage(PageId);		 
	}

	@Override
	public List<Page> getAllPages() throws BaseCouponsAppException 
	{
			return pageDAO.getAllPages();
	}
}

